package com.sevenwolves.action;

import com.opensymphony.xwork2.ActionSupport;
import com.sevenwolves.dao.impl.UserDAOHibernateImpl;

public class LoginAction extends ActionSupport {
	private String userName;
	private String userPwd;
	public String login(){
		boolean b=UserDAOHibernateImpl.getInstance().CheckUser(userName, userPwd);
		if(b==true){
			return SUCCESS;
		}
		return INPUT;
		
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPwd() {
		return userPwd;
	}
	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}
}
